package router

import (
	"getaway/basic/config"
	"getaway/handler/api"
	"getaway/middleware"
	"github.com/gin-gonic/gin"
)

func AI(v1 *gin.RouterGroup) {
	AI := v1.Group("ai")
	{
		AI.Use(middleware.JWTAuth(config.KEY_JWT))
		AI.POST("/chatwithai", api.ChatWithAI)        // 聊天
		AI.GET("/gethistory", api.GetHistory)         // 获取对话记录
		AI.GET("/getsessionlist", api.GetSessionList) // 获取会话列表
	}
}
